home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / mx / core / SpriteAsset.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  998 b   |  44 lines

  1. package mx.core
  2. {
  3.    use namespace mx_internal;
  4.    
  5.    public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject
  6.    {
  7.       mx_internal static const VERSION:String = "2.0.1.0";
  8.       
  9.       private var _measuredWidth:Number;
  10.       
  11.       private var _measuredHeight:Number;
  12.       
  13.       public function SpriteAsset()
  14.       {
  15.          super();
  16.          _measuredWidth = width;
  17.          _measuredHeight = height;
  18.       }
  19.       
  20.       public function get measuredWidth() : Number
  21.       {
  22.          return _measuredWidth;
  23.       }
  24.       
  25.       public function get measuredHeight() : Number
  26.       {
  27.          return _measuredHeight;
  28.       }
  29.       
  30.       public function setActualSize(param1:Number, param2:Number) : void
  31.       {
  32.          width = param1;
  33.          height = param2;
  34.       }
  35.       
  36.       public function move(param1:Number, param2:Number) : void
  37.       {
  38.          this.x = param1;
  39.          this.y = param2;
  40.       }
  41.    }
  42. }
  43.  
  44.